import request from '@/utils/request'

export const budgetStatisticsList = (data) => { //维修管理-预算查看-分页查询
  return request.request({
    url: '/maintenance-system/api/maintenance/repairInfo/selectStatisticsPage',
    method: 'post',
    data
  })
}

export const budgetExpenditureList = (data) => { //维修管理-预算花费情况查看-分页查询
  return request.request({
    url: '/maintenance-system/api/maintenance/repairInfo/subjectStatistics',
    method: 'post',
    data
  })
}

export const facilityExpensesList = (data) => { //维修管理-设备设施费用花费情况查看-分页查询
  return request.request({
    url: '/maintenance-system/api/maintenance/repairInfo/feStatistics',
    method: 'post',
    data
  })
}
export const budgetViewExportAll = (data) => { //导出全部
  return request.request({
    url: '/maintenance-system/api/maintenance/repairInfo/selectStatisticsPage/export',
    responseType: 'arraybuffer',
    method: 'post',
    data,
  })
}
export const budgetExpenditureExportAll = (data) => { //导出全部
  return request.request({
    url: '/maintenance-system/api/maintenance/repairInfo/subjectStatistics/export',
    responseType: 'arraybuffer',
    method: 'post',
    data,
  })
}
export const facilityExpensesExportAll = (data) => { //导出全部
  return request.request({
    url: '/maintenance-system/api/maintenance/repairInfo/feStatistics/export',
    responseType: 'arraybuffer',
    method: 'post',
    data,
  })
}

export function repairDetailsByEdis(params) { //维修管理-通过edis编码获取详细信息
  return request({
    url: '/maintenance-system/api/maintenance/repairInfo/edis',
    method: 'GET',
    params
  })
}



